<?php
/*
 * Created on 27.06.2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 class Model_Breadcrumb extends Models_Base {
 	
 	private $tree = array(
 		'sales/construction' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/sales',
 				name	=> 'Продажа'
 			),
 			array(
 				name	=> 'Наше строительство'
 			),
 		),
 		'sales/flats' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/sales',
 				name	=> 'Продажа'
 			),
 			array(
 				name	=> 'Квартиры'
 			),
 		), 		
 		'sales/villas' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/sales',
 				name	=> 'Продажа'
 			),
 			array(
 				name	=> 'Виллы'
 			),
 		),
 		'sales/special' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/sales',
 				name	=> 'Продажа'
 			),
 			array(
 				name	=> 'Спецпредложения'
 			),
 		),
 		'sales' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				name	=> 'Продажа'
 			),
 		), 
 		'rent' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				name	=> 'Аренда'
 			),
 		),
 		'rent/hotels' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/sales',
 				name	=> 'Аренда'
 			),
 			array(
 				name	=> 'Отели'
 			),
 		),
 		'investment' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				name	=> 'Инвестиции'
 			),
 		),
 		'investment/projects' => array(
 			array(
 				alias 	=> '/',
 				name	=> 'Главная'
 			),
 			array(
 				alias 	=> '/investment',
 				name	=> 'Инвестиции'
 			),
 			array(
 				name	=> 'Проекты'
 			), 			
 		), 		
  		'index' => array(
 			array(
 				name	=> 'Главная'
 			),
 		),
        'questions'  => array(
            array(
                alias   => '/',
                name    => 'Главная'
            ),
            array(
                name    => 'Ваши вопросы'
            )
        ),
        'search'  => array(
            array(
                alias   => '/',
                name    => 'Главная'
            ),
            array(
                name    => 'Поиск по каталогу'
            )
        )         
 	);
 	
 	private $bc;
 	
 	function __construct($alias) {
error_log("ALIAS: $alias"); 	    

        
 	
		$this->bc = $this->tree[$alias ? $alias : 'index'];
 	} 
 	
 	function get() {
		return $this->bc;
 	}
 }
?>
